package com.doitedu.hbase.load;

import org.apache.commons.lang3.StringUtils;

/**
 * @Date 2021/12/16
 * @Created by HANGGE
 * @Description TODO
 */
public class Test {
    public static void main(String[] args) {
        // 将字符串变成定长
        String[]  arr = new String[]{"128", "1128" , "4","11345"} ; // 6
        for (String s : arr) {
            String res = StringUtils.leftPad(s, 6, "0");
            System.out.println(res);
        }



    }
}
